package com.portal.business.functions.action;




import java.io.File;

import com.portal.business.functions.FunctionsService;
import com.portal.business.functions.action.model.FunctionsModel;
import com.portal.framework.dao.ParameterCatch;
import com.portal.framework.exception.AppException;
import com.portal.framework.webutil.BaseAction;


/**
 * 
 * 项目名称: Portal     
 * 类名称:   FunctionsAction     
 * 类描述:   功能介绍(只有查询功能,增删改功能在客服系统后台里调用操作)   
 * 创建人:   骆海东
 * 创建时间: Aug 31, 2011 5:20:05 PM     
 * 最后修改人:   骆海东
 * 最后修改时间: Aug 31, 2011 5:20:05 PM     
 * 最后修改备注:
 */
public class FunctionsAction extends BaseAction {
	    
	private static final long serialVersionUID = -7865755029941700120L;

	private FunctionsModel model = new FunctionsModel();
	
	private FunctionsService functionsService;
	
	 /** 
     * 图片对象 
     */  
    private File imgFile;  
      
    /** 
     * 图片宽度 
     */  
    private String imgWidth;  
      
    /** 
     * 图片高度 
     */  
    private String imgHeight;  
      
    /** 
     * 图片对齐方式 
     */  
    private String align;  
      
    /** 
     * 图片标题 
     */  
	/**
	 * 查询
	 * 
	 * @return
	 * @throws AppException
	 */
	public String goFunctionsMain() {
        //分页查询结果集
	    model.setFDTOs(this.functionsService.findAllDesc());
		return SUCCESS;
	}
	/**
	* 首页展示查询
	* 
	* @return
	* @throws AppException
	*/
	public String goFunctionsIndex() {
		//分页查询结果集
		 this.getRequest().setAttribute("funDTOs",this.functionsService.findIndex());
		//获取地址
		String furl= ParameterCatch.parameterMap.get("imgUrl");
		 this.getRequest().setAttribute("furl",furl);
		return SUCCESS;
	}

	public FunctionsModel getModel() {
		return model;
	}

	public void setModel(FunctionsModel model) {
		this.model = model;
	}

	public FunctionsService getFunctionsService() {
		return functionsService;
	}

	public void setFunctionsService(FunctionsService functionsService) {
		this.functionsService = functionsService;
	}


}
